package com.itbbfx.mapper;

import com.itbbfx.entity.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface DrugdictionaryMapper extends Mapper<Drugdictionary> {

    List<Drugdictionary> selectdgty(@Param("sdrugdictionary") Drugdictionary sdrugdictionary);

    int selnumber(@Param("map") Map<String,Object> map);

    int addSdrugdictionary(Drugdictionary sdrugdictionary);
    int editSdrugdictionary(Drugdictionary sdrugdictionary);
    int deleteSdrugdictionary(Integer drugId);
    List<Unit> findAllUnit();
    List<Area> findAllArea();
    List<Type> findAllType();
    int count(Drugdictionary sdrugdictionary);

    int countUnit(Integer unitId);

    int countType(Integer typeId);
}